package com.beijing.demo;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.HttpRequestHandler;

public class HttpController implements HttpRequestHandler {

	@Override
	public void handleRequest(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		System.out.println("===================HttpController===================");
		String message = "hellworld!! HttpController";
	    request.setAttribute("message", message);
	    request.getRequestDispatcher("/WEB-INF/jsp/demo/request.jsp").forward(request, response);
	}

}
